<?php

namespace App\Exceptions;

/***
 * API 自定义异常类
 */

use Exception;

class ApiException extends Exception
{
    public $errorMessage;

    public $errorCode;

    //自定义异常处理
    public function __construct($errorCode, $errorMessage)
    {
        parent::__construct();
        $this->errorMessage = $errorMessage;
        $this->errorCode    = $errorCode;
    }
}
